import request from '@/util/request';
// login登录
export function login(params) {
    return request.post('http://157.122.54.189:9060/user/login',params);
}
// 无感登陆接口
export function logins(code){
    return request.post('http://123.206.55.50:7001/user/code2session', {code})
}
// 获取用户信息
export function getUser(token) {
    return request.get('http://157.122.54.189:9060/user');
}
// 更新用户信息
// export function updateUser(data) {
//     return request.patch('http://157.122.54.189:9060/user',data);
// }
// 查看收藏
export function seeColl(data) {
    return request.get('http://157.122.54.189:9060/user/favorites');
}
// 发布二手房数据
export function getDataOne(data) {
    return request.post('https://appapi.5i5j.com/appapi/exchange/1/v1/prolist');
}
// 发布出租数据
export function getDataTwo(data) {
    return request.post('https://appapi.5i5j.com/appapi/renting/1/v1/list',data);
}
// 发布求租数据
export function getDataThree(data) {
    return request.post('https://appapi.5i5j.com/appapi/renting/1/v1/list',data);
}
// 发布求购数据
export function getDataFour(data) {
    return request.post('https://appapi.5i5j.com/appapi/exchange/1/v1/prolist');
}
// 收藏数据
export function getColl(data) {
    return request.post('https://appapi.5i5j.com/appapi/exchange/1/v1/prolist',data);
}